﻿@model IList<MyStore.PresentationModel.Models.Products.ProductOnSaleModel>
@{
    ViewBag.Title = "List";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>
    产品列表</h2>
<ul>
    @foreach (var product in Model)
    {
        <li>
            @Html.ActionLink(Html.Encode(product.Name), "Detail", "Product", new { code = product.Code }, null)<br />
            售价: @product.Price 元
            @Html.ActionLink("加入购物车", "Add", "Cart", new { code = product.Code }, null)
        </li>
    }
</ul>
